package com.jgy.controller;

import com.jgy.service.ExcelExportServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;

/**
 * @author 姜光远
 * @date 2023/7/18 10:23
 */
@RestController
public class ExcelExportController {

    @Autowired
    private ExcelExportServiceImpl jobManageService;


    //下载模板
    @GetMapping(value="/downloadWorkplacedetail")
    public void downloadWorkplacedetail(HttpServletRequest request, HttpServletResponse response) throws FileNotFoundException {
        jobManageService.downloadWorkplacedetail(response);
    }

}
